Added error when adding mixin with dependencies. Added error when mixin is not a type.