Fixed assignment and copy constructor by explicitly casting to base, if not the templated methods are invoked instead