Updates self:: References to static::

Replaces several `self::` references with late static binding `static::` references, which gives a more predictable inherited reference behaviour.