made serialier handle arrays better and made it a lot more functional