Fixed CustomValueObjectImpl.stg and fixed minor issues in CustomBaseValueObjectImpl.stg. refs #488