Passed CodeRefinement encoding of file position from String to IPath.
Removed useless method.
Added tests to handle empty path refinements.