Normalize values for lib/functions/getAttrObj. Fixes #50.