don't use identity() in ntoh, hton, ltoh, htol
warning for conflicts between static parameters and variables

also fix an internal bug triggered by such conflicts. fixes #5369