Primitive functions

Includes digital logic primitive injection!
This may even go away, depending on how I implement a certain part of elaboration.