[bugfix][localfunctionspace] dereference shared_ptr to create the BaseT