Add overlayed styles to the end of the list not the beginning, the ones added later are the ones that are applied last.
Initialize attr array as empty array when passed in as null.
Only look up style resource if it could be resolved.