I'm going to get proper legal advice on this in due course, but it seems like on a whim they can decide you're a non residents because there seems to be no hard or fast rules...
Basically the only way to absolutely ensure portability is to not leave Australia for 2 years.