Fix #34070: set origin operator did not work for lattice objects.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54249 954f8c5b-7b00-dc11-b283-0030488c597c
Fix some warnings in the collade code, but did not fix two because they seem
to indicate bugs, left a comment about those.

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