lua : make function names more consistant
lua : change creation of storage/format object to one unique function for all types