Revert "Revert "Fixes issue when using defineProperties we were passing the array of properties instead of the property to the 'property' function""

This reverts commit 87244a5982aac3ce25a7e54d64472d1532998dc2.