Adding inheritance to for-in.