In 7fc035f, a general fix to instantiation via reflection was made and a test case added. The test case fails due to a separate issue, solved in this commit, which affects only the first instantiation via reflection.
7fc035f