Fix several small bugs

... one commit per problem, including two bugs in `ensime-import-type-at-point` : ensime/ensime-server#677 and ensime/ensime-server#591