A boulder kept on display at a school for decades has been found to have a remarkable collection of dinosaur footprints.