Superintegrability and higher order constants for classical and quantum systems