Begin BaseType class.

Tests can be ran with.

vendor/bin/phpunit --verbose --bootstrap test/bootstrap.php test