added utility to generate SPL types resolves #14