Fix barclamp and name methods to work w/ templates

```barclamp``` method, when called on a barclamp template, returned
'template'. Similarly, ```name``` returned the barclamp name.

This then broke the all_elements method and possibly others.