A few more helper routines

I should really split this file into element.go and element_list.go