Consistent function attribute placement

also removed 2 duplicate consts that are now errors in dmd git HEAD