improved deep_split and deep_sym; added some additional null checks to improve robustness