added context parameter to layer events
fixed slur position TC
added support for cross-stave beams enc. with <space>