Fix issue with using element names.

Setting property names with element names via the ctor was not working.