v50: Added API to replace dimen resources from code

Previously, it was only possible to use an XResForwarder as replacement.

Usage example:

XResources.setSystemWideReplacement("android", "dimen", "status_bar_height",
        new DimensionReplacement(50, TypedValue.COMPLEX_UNIT_DIP));