Implement getParameterTypes

Closes #2028