Clean up locprint(), and enable indexes.

    locprint %IDXt will print the IDXth argument of type t.