again, a helper for `setAttribute()` that allows ints, floats, etc. would be good.

is it possible to create an `addAttribute()` too? i'm just going through my old issue #1438 and looking for things that seem missing.