Fix keyref processing attribute cascading bug #1459