Confirm bug about finding locally declared metadata properties.
Fix issue #1.