Fix cycles computing UV map tangents when they weren't needed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54252 954f8c5b-7b00-dc11-b283-0030488c597c
Fix python foreach_get/foreach_set not working with dynamic sized arrays.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54253 954f8c5b-7b00-dc11-b283-0030488c597c