Bake-API: cage fix - bug in the patch found by Andy Davies (metalliandy)
[some faces were rotated when using EdgeSplit modifier]

Test file:
https://dl.dropboxusercontent.com/u/2057427/Blender/Cage_Bake_Test_3b_Render_broken.blend
typo
style cleanup
changes from Campbell Barton