Ok firstly thanks Mark for your help on this one, it turns out when importing external files with namespaces etc having Globals initialized outside of a class Method/Function causes the MAV. I moved the declaration inside the class that uses it and added the initializer (New) to the New method for that class and now it works perfectly :).
Its one of the things that MX1 used to do which I will have to unlearn as I was always initializing variables as I created them which was bad practice in some cases 