Rethink default clear all to improve compatibility with Matlab 2015b

With Matlab 2015b the default clear all statement interferes with the new just-in-time compiler, resulting in many warnings and poor performance. We may want to get rid of this clear all.