Fixed 4 failing tests due to astropy.modeling API change

Fixed 4 failing tests due to astropy/astropy#1680 by explicitly setting `param_dim` in class factory.