Fixes bug where layout rotate property was being incorrectly fixed to rotateX instead of rotateZ. Addresses (part of) #1210.