Code size reduction: use static constexpr arrays to define signatures

This shaved between 40 and 60 KB from our minified javascript build.

cc @waywardmonkeys