Supports a colony_tolstring function for transforming values.
Fixes nil comparisons.
Corrects global regexes.