[ALOY-851] account for platform when assigning default id
[ALOY-851] properly wrap conditions around defers, update _generated
Merge pull request #304 from appcelerator/ALOY-851

[ALOY-851] fix defers and conditionals, update _generated