Factory methods for Shape.
Retrieves a factory of Shape compatible with the given vector type.
Retrieves a factory of Shape compatible with the given space. (This method is meant for compatibility with java).