Adds support for preference default value declared in XML

Initializes preference default value from XML attribute by peeking typed value and coercing to a String.