Convenience methods for retrieving template params

Also minor fixes to return types on pgrid_col / pgrid_row methods
Cleaner definitions of minimum local req'd storage

Also more conservative w.r.t. memory overhead - previous code only
allocated in increments of full block widths.
Convenience methods for minimum local storage dims
Corrected checks on non-zero local storage size