Fixed #1277: Special treatment for 'new this()'

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>