Add specs for converting stub params to stringified hash.
Fix problem with list stub without parameter constraint.
Fix problems with type inheritance in stubs.