Support docstring after type definition. Added support for optional param of any type.