Added error validation to check that datapoints array fields are all static and public too, fixing #125