[WIP] s/EntityManager/EntityManagerInterface in type-hints

This is just overlapping with #1209: will rebase once merged, so that it disappears from the diffs.