compiler/libec: Fixed crash on inheriting off a struct