Syntactic sugar for command construction

- Each CommandComponent now has a singleton object of the same
name to allow 'Ref(...)' instead of 'new Ref(...)' and similar.