Core utilities for PhET libraries