Minor fixes and feature additions

I'm implementing a more realistic sample app and running across various little issues and missing features. This corrects a problem with id-only views and adds support for patterned colors (from resource images)