Yes, I think you need to go ahead with the Xrays and ultrasound. He could have a blockage.
Dogs can get congnitive dysfunction. He's a bit on the young side but just because it's mostly geriatric doesn't mean it doesn't ever happen younger.
Good thoughts for Matix.