[nr] Use type traits to parse attr's type
[nr] Use type-specific default attr values