Android UIBinder fixes

There are somethings assumed in the code that breaks UiBinder when
coupled with Android. This fixes a few.
Merge pull request #6 from mvniekerk/master

UiBinder fixes for Android