fixed array-as-color parsing bug, added startup profiling code