Fix issue 18 - expression flattening was going wrong for texture2D() calls