Changed type of ESpace, fixed typo in renderer, improved semantic element handling

As discussed by email.