Compile `sizeOf` for scalars using Source.

Closes #226.
Closes #184.