Fixed some issues related to cloning RenderState.

Fixes #838
Merge branch 'next' of https://github.com/blackberry/GamePlay into next
Merge pull request #946 from sgrenier/next

Fixes RenderState cloning issues.