Make _debugWrite and _debugWriteln take generic arguments.
Make _debugWrite and _debugWriteln take generic arguments.

Added a nested function in _debugWrite that checks if the type of its argument
is a simple type that can be cast to string. If yes, cast the argument to
string and return it, if no, issue a compiler error.


git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@15505 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,chizarlicious/chapel,hildeth/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,chizarlicious/chapel,hildeth/chapel,CoryMcCartan/chapel