container: improve mixin feature to enable chaining (refs #43)