transformation/custom: Add explicit initializers

Move '='-copy-construction in function body to
member initializer list in constructor. Also add
initializer for default constructor.