Added flags for range checking
Fixed range check error caused by calling move with zero length source array