And Nathan Fillion is REVELING in it here (replaced the youtube excerpt with the HULU link to the full episode:
There are multiple Firefly and Buffy shouts in there. Very fun.
Oh and this isn't the first time Castle has thrown the Whedonites a bone. A few weeks back they pulled a "hands of blue" moment.