Texture expression fix

Fixed a few of the issues mentioned by Esteban.

Signed-off-by: Marius Avram <marius.avram1309@gmail.com>
Can you move this code to DisneyLayerParam::prepare?
I'd prefer the special cases (constant and simple texture) code to be together.
Other than that, it's good.