allow nested key (ex: data.message) to attr_keys

I implemented that allow nested key to attr_keys parameter (ex: data.message).
Please merge if you like.