Add  IsAJsonbScalar() convenience macro

Also, be consistent about order of working through Jsonb types.
Previously this wasn't uniformly the case.