[0.7.11] Added optional type-checking for method parameters.