localType attribute fixes, date fixes, many other small updates