Added test for #166 workaround
Closes #127: It's fixed

First part in commit 50beef99, where this is detected and prevented.
Second part in commit d84fa806, where constructor code is duplicated.