[ALOY-731] make sure clearOnEdit xml attribute is processed as a boolean, test app included

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