Fix type completion problem caused by incorrect position type.
Added additional tests to RichPresentationCompilerSpec.
Merge pull request #554 from marcsaegesser/Completions-2.11

Fix type completion problem caused by incorrect position type.