Regular kernel grid fixes

Several minor, but important changes to the regular grid kernel output. The existing code would probably work, but might have trouble with a few edge cases.