Add Orderable bound to num::Primitive

cc #4819