fixed a bug where a child object containing one key as a string was returning an incorrect default value + added a test for this