"The Heir Apparent," adapted by David Ives from the early-18th-century French comedy, is slangy, scatological and very heady, but with the reliable rhythms of a minuet.