[ALOY-685] Port generateStyleParams() into a runtime version

Ticket: [https://jira.appcelerator.org/browse/ALOY-685](https://jira.appcelerator.org/browse/ALOY-685)