Instead of 0 and 1 you should be able to use the RX and TX constants (at least if people are using Arduino 1.5.4 or higher... I haven't looked across variant pins_arduino.h files to ensure these constants are consistent). I haven't looked into how this works with boards that have multiple uarts either.