fixing ties within beam and MEI export bugs