Override getLayoutDimension()

These methods are used especially when inflating views, so they should use
the dimension replacements as well.
Override getColorStateList()

XResources claimed that this was handled by loadXmlResourceParser(), but
in fact it wasn't handled by the variant that was overridden previously.
Now it is handled.

Possible replacements are ColorStateLists, integers (handled as color
constants) and resource forwarders.