Extract mapping of kspace to grid and vice versa.
Minor: fix warnings.
Extended gradient demo.