WIP: Start numeric type for resources

Opening for comments on this approach. Not functional yet.
Suggestion: say something about the fact that we want to accept ("parse") numbers of this form to make things easier for people, and re-emit them again later ("serialization").  Without that clue, this comes across as diving into details without a motivation.