implement keepRaw for the attribute reader as well

This is a follow-up to #246