Specify what element the attr refs are for in an elementdef block. Fixes #273.