Fixed problem when trying to add attributes to a built-in type.

I just extended list instead.