for (var x in y) blocks should always check for inherited properties