Fixes #1666: Missing constructor calls for static objects