NEW: added cost function to integrate L2 norm over base (commit: 1381298)
CHG: no more types (commit: 0088672)