gras: fix from previous commit: swig element equals

Just put an API call into element so its always there,
and call it from swig.