Android UIBinder fixes

There are somethings assumed in the code that breaks UiBinder when
coupled with Android. This fixes a few.