Partial support for constructors

Fixes #1704