Lkjcorr returning error

.eval() is just for debugging and can be used also inside a model / with model variables.

If you are only getting error with model variables I suspect you did something wrong with the dims?