Fixed return of getOwnPropertyNames.