Moved preprocess function from base to types

The preprocess function was moved from benchmark.runners
.base to benchmark.types. Decoupling the preprocess
function from base removes a dependency in code.

A unit test for preprocess has also been added to
test_types.py.

Change-Id: I311316c667bb6256ea5f0a32e24328102b62c6e8