Added the ability to detect new objects and arrays, also added NULL detection.