Refinemap singlepass

Since #87 was merged, grids can be refined partially in a direct way. Thus it is no longer necessary to scan separately for refinement and then for derefinement - only single scan should be sufficient.