getStructElement implemented, but there's a bug somewhere