Align constant declarations
Dispatch on value type in BSON's `append`

This allows the compiler to specialize the code for each value type and is generally preferred to switching with an explicit `typeof`.