Unexpected constructor: Accept options.typeByName
Added test.