TIMOB-3529-Added support for undefined type

TypeConverter is modified to handle undefined type when converting to Object. This may have a side effect of existing code in Java getting undefined object rather than null earlier. 
TiWindowProxy has been modified the check for both null and undefined.

https://jira.appcelerator.org/browse/TIMOB-3529